Ext.define('MyApp.model.ToolbarMenuEntity', {
			extend : 'Ext.data.Model',
			fields : ['id', 'itemId', 'text', 'navigationid','authorityid',{name:'xtype',defaultValue : 'baseauthoritybutton'},{
						name:'glyph',
						type:'number'
					}, {
						name : 'disabled',
						type : 'boolean',
						/*convert:function(val){
						if(val){return "是"; }else{return "否";}
						},*/
						defaultValue : false
					},{
						name:'seq',
						type:'number'
					}],
			proxy:{
				type:'ajax',
				api : {
							read : 'toolbarMenu/getToolbarMenuByNav',
							update : 'toolbarMenu/updateToolbarMenu',
							create : 'toolbarMenu/addToolbarMenu',
							destroy : 'toolbarMenu/destroyToolbarMenu'
				},
				reader:'json'
			} ,
			sorters  :{property: "seq", direction: "ASC"},
			belongsTo : 'MyApp.model.CatalogEntity'
			//associations: [        {type: 'belongsTo', model: 'MyApp.model.NavigationEntity',name:'navigationEntity', primaryKey: 'navigationid', foreignKey: 'id'}        ]
		});